import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';

/*
  Generated class for the ExtraBenefitProvider provider.

  See https://angular.io/guide/dependency-injection for more info on providers
  and Angular DI.
*/
@Injectable()
export class ExtraBenefitProvider {

  constructor(public http: HttpClient) {

  }

  getExtraBenefit(policyNo: string) {
      return this.http.get(`/policy/v1/additionalBenefitsGuarantee/${policyNo}`);
      // return this.http.get(`./assets/json-data/extra-benefit.json`);
  }

}
